package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2023-06-06
 */
@TableName("rate_pay")
@ApiModel(value = "RatePay对象", description = "")
@Data
public class RatePay implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("缴费率")
    private Long schoolId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("季度")
    private Integer quarterNum;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("数量")
    private Integer num;

    private Long studentId;

    private Long gradeId;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("订单详情id")
    private Long orderDetailId;

    private Integer status;

    @TableLogic
    private Integer deleted;

    private LocalDate addDate;

    private long teacherId;

    private Long subjectsId;

    //@TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ExcelIgnore
    @ApiModelProperty("缴费期数合计")
    @TableField(exist = false)
    private Integer numCount;
}
